/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package taikai;

import java.awt.Component;
import java.io.Serializable;
import javax.swing.DefaultCellEditor;
import javax.swing.DefaultListCellRenderer;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JTable;
import javax.swing.ListCellRenderer;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;

/**
 *
 * @author jeffmartin
 */
public class Components implements Serializable {

    private TableCellEditor personCellEditor = new GradeEditor();
    private DefaultCellEditor teamMemberEditor = new DefaultCellEditor(new JComboBox());
    private ListCellRenderer teamCellRenderer = new TeamListCellRenderer();

    public TableCellRenderer getTeamMemberRenderer() {
        return new TableCellRenderer() {

            public Component getTableCellRendererComponent(JTable jtable, Object o, boolean bln, boolean bln1, int i, int i1) {
                return new JLabel("TODO");
            }
        };
    }

    public TableCellEditor getTeamMemberEditor() {
        return teamMemberEditor;
    }

    public ListCellRenderer getTeamCellRenderer() {
        return teamCellRenderer;
    }

    public TableCellEditor getPersonCellEditor() {
        return personCellEditor;
    }
}
